import peewee_async
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
settings = {
    "static_path": "/Volumes/development/Tornado-Study/study/Forum/static",
    "static_url_prefix": "/static/",
    "template_path": "templates",
    "MEDIA_ROOT": os.path.join(BASE_DIR, "media"),
    "secret_key": "d#aPr8%mssTZgVGy",
    "jwt_expire": 7*24*3600,
    "SITE_URL": "http://127.0.0.1:8888",
    "db": {
        "host": "127.0.0.1",
        "user": "root",
        "password": "998219",
        "name": "message",
        "port": 3306
    },
    "redis": {


    }
}

db = peewee_async.MySQLDatabase(
    'forum', host='127.0.0.1',port=3306,user='root',password='998219'
)